package cn.lml.lession.auth.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.lml.lession.auth.service.impl.UserServiceImpl;
import cn.lml.lession.common.vo.UserVo;
import feign.Param;

@FeignClient(name = "user-service",fallback = UserServiceImpl.class)
public interface UserService {

	@GetMapping("/user/findByUsername")
	UserVo findUserByUsername(@RequestParam("username") String username);
}
